from django.conf import settings
from application.celery import app
from django.core import mail


# Celery 任务：发送验证码邮件
@app.task
def send_verification_email_task(email, subject, message):
    mail.send_mail(subject, message, settings.EMAIL_HOST_USER, [email])
